Optimal. Leaf size=204 \[ \frac {2 a \left (3 a^2 A+15 a b B+14 A b^2\right ) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 a^2 (5 a B+9 A b) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 \left (a^3 B+3 a^2 A b+9 a b^2 B+3 A b^3\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}-\frac {2 \left (3 a^3 A+15 a^2 b B+15 a A b^2-5 b^3 B\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 a A \sin (c+d x) (a+b \cos (c+d x))^2}{5 d \cos ^{\frac {5}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.48, antiderivative size = 204, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2989, 3031, 3021, 2748, 2641, 2639} \[ \frac {2 \left (3 a^2 A b+a^3 B+9 a b^2 B+3 A b^3\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}-\frac {2 \left (3 a^3 A+15 a^2 b B+15 a A b^2-5 b^3 B\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 a \left (3 a^2 A+15 a b B+14 A b^2\right ) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 a^2 (5 a B+9 A b) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a A \sin (c+d x) (a+b \cos (c+d x))^2}{5 d \cos ^{\frac {5}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 2748
Rule 2989
Rule 3021
Rule 3031
Rubi steps
\begin {align*} \int \frac {(a+b \cos (c+d x))^3 (A+B \cos (c+d x))}{\cos ^{\frac {7}{2}}(c+d x)} \, dx &=\frac {2 a A (a+b \cos (c+d x))^2 \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2}{5} \int \frac {(a+b \cos (c+d x)) \left (\frac {1}{2} a (9 A b+5 a B)+\frac {1}{2} \left (3 a^2 A+5 A b^2+10 a b B\right ) \cos (c+d x)-\frac {1}{2} b (a A-5 b B) \cos ^2(c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a^2 (9 A b+5 a B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a A (a+b \cos (c+d x))^2 \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}-\frac {4}{15} \int \frac {-\frac {3}{4} a \left (3 a^2 A+14 A b^2+15 a b B\right )-\frac {5}{4} \left (3 a^2 A b+3 A b^3+a^3 B+9 a b^2 B\right ) \cos (c+d x)+\frac {3}{4} b^2 (a A-5 b B) \cos ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a^2 (9 A b+5 a B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \left (3 a^2 A+14 A b^2+15 a b B\right ) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 a A (a+b \cos (c+d x))^2 \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}-\frac {8}{15} \int \frac {-\frac {5}{8} \left (3 a^2 A b+3 A b^3+a^3 B+9 a b^2 B\right )+\frac {3}{8} \left (3 a^3 A+15 a A b^2+15 a^2 b B-5 b^3 B\right ) \cos (c+d x)}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 a^2 (9 A b+5 a B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \left (3 a^2 A+14 A b^2+15 a b B\right ) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 a A (a+b \cos (c+d x))^2 \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}-\frac {1}{3} \left (-3 a^2 A b-3 A b^3-a^3 B-9 a b^2 B\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx-\frac {1}{5} \left (3 a^3 A+15 a A b^2+15 a^2 b B-5 b^3 B\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {2 \left (3 a^3 A+15 a A b^2+15 a^2 b B-5 b^3 B\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 \left (3 a^2 A b+3 A b^3+a^3 B+9 a b^2 B\right ) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a^2 (9 A b+5 a B) \sin (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \left (3 a^2 A+14 A b^2+15 a b B\right ) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 a A (a+b \cos (c+d x))^2 \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 2.21, size = 176, normalized size = 0.86 \[ \frac {6 a^3 A \tan (c+d x)+9 a \left (a^2 A+5 a b B+5 A b^2\right ) \sin (2 (c+d x))+10 a^2 (a B+3 A b) \sin (c+d x)+10 \left (a^3 B+3 a^2 A b+9 a b^2 B+3 A b^3\right ) \cos ^{\frac {3}{2}}(c+d x) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )-6 \left (3 a^3 A+15 a^2 b B+15 a A b^2-5 b^3 B\right ) \cos ^{\frac {3}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d \cos ^{\frac {3}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.59, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {B b^{3} \cos \left (d x + c\right )^{4} + A a^{3} + {\left (3 \, B a b^{2} + A b^{3}\right )} \cos \left (d x + c\right )^{3} + 3 \, {\left (B a^{2} b + A a b^{2}\right )} \cos \left (d x + c\right )^{2} + {\left (B a^{3} + 3 \, A a^{2} b\right )} \cos \left (d x + c\right )}{\cos \left (d x + c\right )^{\frac {7}{2}}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{3}}{\cos \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 4.33, size = 997, normalized size = 4.89 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} {\left (b \cos \left (d x + c\right ) + a\right )}^{3}}{\cos \left (d x + c\right )^{\frac {7}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.59, size = 291, normalized size = 1.43 \[ \frac {2\,\left (B\,\mathrm {E}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )\,b^3+3\,B\,a\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )\,b^2\right )}{d}+\frac {2\,A\,b^3\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,A\,a^3\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {5}{4},\frac {1}{2};\ -\frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{5\,d\,{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,B\,a^3\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {6\,A\,a\,b^2\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,A\,a^2\,b\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {6\,B\,a^2\,b\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________